import { GetTopoModuleListResult, UpdateTopoModuleParam } from './model/topoModuleModel'

import { defHttp } from '/@/utils/http/axios'

export const getTopoModuleList = (params: any) =>
  defHttp.get<GetTopoModuleListResult>({ url: '/topo_module/list', params })

export const updateTopoModule = (params: UpdateTopoModuleParam) =>
  defHttp.post<void>({ url: '/topo_module/update', params })
